package com.ee.chat.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * <p>
 * 用户钱包统计表
 * </p>
 *
 * @author Shane
 * @since 2019-08-20
 */
@TableName("user_wallet")
public class UserWallet implements Serializable {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;

	/**
	 * 用户id
	 */
	@TableField(value="user_id")
	private Integer userId;

	/**
	 * 累计金币数量
	 */
	@TableField(value="total_coin")
	private Integer totalCoin;

	/**
	 * 可使用金币数量
	 */
	@TableField(value="active_coin")
	private Integer activeCoin;

	/**
	 * 累计积分
	 */
	@TableField(value="total_credit")
	private Double totalCredit;

	/**
	 * 可使用积分数量
	 */
	@TableField(value="active_credit")
	private Double activeCredit;

	public UserWallet() {
	}

	public UserWallet(Integer userId, Integer totalCoin, Integer activeCoin, Double totalCredit, Double activeCredit) {
		this.userId = userId;
		this.totalCoin = totalCoin;
		this.activeCoin = activeCoin;
		this.totalCredit = totalCredit;
		this.activeCredit = activeCredit;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getTotalCoin() {
		return totalCoin;
	}

	public void setTotalCoin(Integer totalCoin) {
		this.totalCoin = totalCoin;
	}

	public Integer getActiveCoin() {
		return activeCoin;
	}

	public void setActiveCoin(Integer activeCoin) {
		this.activeCoin = activeCoin;
	}

	public Double getTotalCredit() {
		return totalCredit;
	}

	public void setTotalCredit(Double totalCredit) {
		this.totalCredit = totalCredit;
	}

	public Double getActiveCredit() {
		return activeCredit;
	}

	public void setActiveCredit(Double activeCredit) {
		this.activeCredit = activeCredit;
	}

}
